package com.ax.center.controller;

import com.ax.center.annotation.Logging;
import com.ax.center.dto.ApiResponse;
import com.ax.center.service.OperationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author zy
 * @date 2023/7/13 10:50
 */
@RestController
@RequestMapping(value ="operationController" )
@Api(tags = "日志服务")
@CrossOrigin(origins = "http://localhost:5173")
public class OperationController {
    @Autowired
    private OperationService operationService;

    @Logging(description = "查询操作日志")
    @GetMapping(value = "/queryAll")
    @ApiOperation("查询操作日志")
    public ApiResponse queryAll(){
        return   operationService.queryAll();
    }
}
